#pragma once

#include <libz800.h>

#include "ui_DlgProperties.h"

class DlgProperties : public QDialog
				    , protected Ui_DlgProperties
{
	Q_OBJECT

public:
	DlgProperties(QWidget *parent = NULL);

public slots:
	void setDevice(z800_device *dev);
	void update();

protected slots:
	void on_tableWidget_itemSelectionChanged();
	void on_refreshPushButton_pressed();

protected:
	void updateRow(int r);
	QString selectedProperty();

	z800_device *_dev;
};
